﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsSalesByCustomerRevenues" targetNamespace="http://tempuri.org/dsSalesByCustomerRevenues.xsd" xmlns:mstns="http://tempuri.org/dsSalesByCustomerRevenues.xsd" xmlns="http://tempuri.org/dsSalesByCustomerRevenues.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="CarlsbergConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="CarlsbergConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.CarlsbergConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ReportSalesByCustomerRevenuesTableAdapter" GeneratorDataComponentClassName="ReportSalesByCustomerRevenuesTableAdapter" Name="ReportSalesByCustomerRevenues" UserDataComponentName="ReportSalesByCustomerRevenuesTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CarlsbergConnectionString (Web.config)" DbObjectName="Carlsberg.dbo.ReportSalesByCustomerRevenues" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [ReportSalesByCustomerRevenues] WHERE (([ID] = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [ReportSalesByCustomerRevenues] ([CustomerName], [CustomerAddress], [Revenues], [Share], [Cumulative]) VALUES (@CustomerName, @CustomerAddress, @Revenues, @Share, @Cumulative)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerAddress" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Revenues" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Revenues" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Share" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Share" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Cumulative" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Cumulative" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ReportSalesByCustomerRevenues.*
FROM            ReportSalesByCustomerRevenues</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [ReportSalesByCustomerRevenues] SET [CustomerName] = @CustomerName, [CustomerAddress] = @CustomerAddress, [Revenues] = @Revenues, [Share] = @Share, [Cumulative] = @Cumulative WHERE (([ID] = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerAddress" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Revenues" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Revenues" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Share" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Share" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Cumulative" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Cumulative" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="CustomerName" DataSetColumn="CustomerName" />
              <Mapping SourceColumn="CustomerAddress" DataSetColumn="CustomerAddress" />
              <Mapping SourceColumn="Revenues" DataSetColumn="Revenues" />
              <Mapping SourceColumn="Share" DataSetColumn="Share" />
              <Mapping SourceColumn="Cumulative" DataSetColumn="Cumulative" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsSalesByCustomerRevenues" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsSalesByCustomerRevenues" msprop:Generator_UserDSName="dsSalesByCustomerRevenues">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ReportSalesByCustomerRevenues" msprop:Generator_TableClassName="ReportSalesByCustomerRevenuesDataTable" msprop:Generator_TableVarName="tableReportSalesByCustomerRevenues" msprop:Generator_TablePropName="ReportSalesByCustomerRevenues" msprop:Generator_RowDeletingName="ReportSalesByCustomerRevenuesRowDeleting" msprop:Generator_RowChangingName="ReportSalesByCustomerRevenuesRowChanging" msprop:Generator_RowEvHandlerName="ReportSalesByCustomerRevenuesRowChangeEventHandler" msprop:Generator_RowDeletedName="ReportSalesByCustomerRevenuesRowDeleted" msprop:Generator_UserTableName="ReportSalesByCustomerRevenues" msprop:Generator_RowChangedName="ReportSalesByCustomerRevenuesRowChanged" msprop:Generator_RowEvArgName="ReportSalesByCustomerRevenuesRowChangeEvent" msprop:Generator_RowClassName="ReportSalesByCustomerRevenuesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:long" />
              <xs:element name="CustomerName" msprop:Generator_ColumnVarNameInTable="columnCustomerName" msprop:Generator_ColumnPropNameInRow="CustomerName" msprop:Generator_ColumnPropNameInTable="CustomerNameColumn" msprop:Generator_UserColumnName="CustomerName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerAddress" msprop:Generator_ColumnVarNameInTable="columnCustomerAddress" msprop:Generator_ColumnPropNameInRow="CustomerAddress" msprop:Generator_ColumnPropNameInTable="CustomerAddressColumn" msprop:Generator_UserColumnName="CustomerAddress" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="400" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Revenues" msprop:Generator_ColumnVarNameInTable="columnRevenues" msprop:Generator_ColumnPropNameInRow="Revenues" msprop:Generator_ColumnPropNameInTable="RevenuesColumn" msprop:Generator_UserColumnName="Revenues" type="xs:double" minOccurs="0" />
              <xs:element name="Share" msprop:Generator_ColumnVarNameInTable="columnShare" msprop:Generator_ColumnPropNameInRow="Share" msprop:Generator_ColumnPropNameInTable="ShareColumn" msprop:Generator_UserColumnName="Share" type="xs:double" minOccurs="0" />
              <xs:element name="Cumulative" msprop:Generator_ColumnVarNameInTable="columnCumulative" msprop:Generator_ColumnPropNameInRow="Cumulative" msprop:Generator_ColumnPropNameInTable="CumulativeColumn" msprop:Generator_UserColumnName="Cumulative" type="xs:double" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ReportSalesByCustomerRevenues" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>